package com.tjp.eight.utils;

/**
 * Created by Administrator on 2017/3/6.
 */

public class IsSuccessUtils {
    public static boolean isSuccess(String s) {
        if ("success".equals(s)) {
            return true;
        }
        return false;
    }

    public static boolean isSero(int n) {
        if (0 == n) return true;

        return false;
    }

    public static boolean isMySelf(String uid) {
        if (StringUtils.isNullOrEmpty(uid)) return false;
        if (uid.equals(SharePreferencesUtils.getUid())) return true;

        return false;
    }

    public static boolean isLogin() {
        if (StringUtils.isNullOrEmpty(SharePreferencesUtils.getUid())) {
            return false;
        }
        return true;
    }
}
